The script can respond to user events by defining its own event handling function and passing the name of that function to the RunLayoutDialog call. When the user presses a button or clicks in a list, for example, VectorWorks will call the event handling function. The function will receive the control item number and any appropriate data. The procedure will be called with an item of SetupDialogC before the dialog box is displayed so that the script can initialize its controls.
Procedure HandleEvents( VAR item : LONGINT; data : LONGINT); InsertChoice( kPullDown, 0, 'choice 0'); InsertChoice( kPullDown, 1, 'choice 1');
| Nemetschek NA |
| Phone: 410.290.5114 |
| Fax: 410.290.8050 |